#region license
# This file is part of Grawlix.
# 
# Grawlix is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
# 
# Grawlix is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public
# License along with Grawlix.  If not, see
# <http://www.gnu.org/licenses/>.
#endregion

"""Typed reference type null equality testing."""

namespace Grawlix.Meta.Tests.Equality
import Grawlix.Meta
import NUnit.Framework

[TestFixture]
class TypedNullEqualityFixture(EqualityAttributeTestCase):

#region aN

	[Test]
	def EqualOperatorAN():
		expect aN, \
			not	_ == a, \
			not	_ == b, \
			not	_ == c, \
			not	_ == d, \
			not	_ == w, \
			not	_ == x, \
			not	_ == y, \
			not	_ == z, \
				_ == aN, \
				_ == bN, \
				_ == cN, \
				_ == dN, \
			not	_ == aO, \
			not	_ == bO, \
			not	_ == cO, \
			not	_ == dO, \
			not	_ == wO, \
			not	_ == xO, \
			not	_ == yO, \
			not	_ == zO, \
				_ == oN, \
			not	_ == aE, \
				_ == aU, \
				_ == null
	
	[Test]
	def NotEqualOperatorAN():
		expect aN, \
				_ != a, \
				_ != b, \
				_ != c, \
				_ != d, \
				_ != w, \
				_ != x, \
				_ != y, \
				_ != z, \
			not	_ != aN, \
			not	_ != bN, \
			not	_ != cN, \
			not	_ != dN, \
				_ != aO, \
				_ != bO, \
				_ != cO, \
				_ != dO, \
				_ != wO, \
				_ != xO, \
				_ != yO, \
				_ != zO, \
			not	_ != oN, \
				_ != aE, \
			not	_ != aU, \
			not	_ != null

#endregion

#region bN

	[Test]
	def EqualOperatorBN():
		expect bN, \
			not	_ == a, \
			not	_ == b, \
			not	_ == c, \
			not	_ == d, \
			not	_ == w, \
			not	_ == x, \
			not	_ == y, \
			not	_ == z, \
				_ == aN, \
				_ == bN, \
				_ == cN, \
				_ == dN, \
			not	_ == aO, \
			not	_ == bO, \
			not	_ == cO, \
			not	_ == dO, \
			not	_ == wO, \
			not	_ == xO, \
			not	_ == yO, \
			not	_ == zO, \
				_ == oN, \
			not	_ == bE, \
				_ == bU, \
				_ == null
	
	[Test]
	def NotEqualOperatorBN():
		expect bN, \
				_ != a, \
				_ != b, \
				_ != c, \
				_ != d, \
				_ != w, \
				_ != x, \
				_ != y, \
				_ != z, \
			not	_ != aN, \
			not	_ != bN, \
			not	_ != cN, \
			not	_ != dN, \
				_ != aO, \
				_ != bO, \
				_ != cO, \
				_ != dO, \
				_ != wO, \
				_ != xO, \
				_ != yO, \
				_ != zO, \
			not	_ != oN, \
				_ != bE, \
			not	_ != bU, \
			not	_ != null

#endregion

#region cN

	[Test]
	def EqualOperatorCN():
		expect cN, \
			not	_ == a, \
			not	_ == b, \
			not	_ == c, \
			not	_ == d, \
			not	_ == w, \
			not	_ == x, \
			not	_ == y, \
			not	_ == z, \
				_ == aN, \
				_ == bN, \
				_ == cN, \
				_ == dN, \
			not	_ == aO, \
			not	_ == bO, \
			not	_ == cO, \
			not	_ == dO, \
			not	_ == wO, \
			not	_ == xO, \
			not	_ == yO, \
			not	_ == zO, \
				_ == oN, \
				_ == null
	
	[Test]
	def NotEqualOperatorCN():
		expect cN, \
				_ != a, \
				_ != b, \
				_ != c, \
				_ != d, \
				_ != w, \
				_ != x, \
				_ != y, \
				_ != z, \
			not	_ != aN, \
			not	_ != bN, \
			not	_ != cN, \
			not	_ != dN, \
				_ != aO, \
				_ != bO, \
				_ != cO, \
				_ != dO, \
				_ != wO, \
				_ != xO, \
				_ != yO, \
				_ != zO, \
			not	_ != oN, \
			not	_ != null

#endregion

#region dN

	[Test]
	def EqualOperatorDN():
		expect dN, \
			not	_ == a, \
			not	_ == b, \
			not	_ == c, \
			not	_ == d, \
			not	_ == w, \
			not	_ == x, \
			not	_ == y, \
			not	_ == z, \
				_ == aN, \
				_ == bN, \
				_ == cN, \
				_ == dN, \
			not	_ == aO, \
			not	_ == bO, \
			not	_ == cO, \
			not	_ == dO, \
			not	_ == wO, \
			not	_ == xO, \
			not	_ == yO, \
			not	_ == zO, \
				_ == oN, \
				_ == null
	
	[Test]
	def NotEqualOperatorDN():
		expect dN, \
				_ != a, \
				_ != b, \
				_ != c, \
				_ != d, \
				_ != w, \
				_ != x, \
				_ != y, \
				_ != z, \
			not	_ != aN, \
			not	_ != bN, \
			not	_ != cN, \
			not	_ != dN, \
				_ != aO, \
				_ != bO, \
				_ != cO, \
				_ != dO, \
				_ != wO, \
				_ != xO, \
				_ != yO, \
				_ != zO, \
			not	_ != oN, \
			not	_ != null

#endregion

